package com.dabai.iot.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dabai.iot.core.entity.AlarmActionEntity;

import java.util.List;

/**
 * 告警动作输出 Service 接口
 *
 * @author kev1n
 */
public interface IAlarmActionService extends IService<AlarmActionEntity> {

    /**
     * 获取与告警配置关联的输出
     */
    List<AlarmActionEntity> getAlarmActionsByAlarmId(Long alarmId);

    /**
     * 获取与告警配置关联的输出缓存
     */
    List<AlarmActionEntity> getAlarmActionsCacheByAlarmId(Long alarmId);

    /**
     * 删除与告警配置关联的输出
     */
    void removeAlarmActions(Long alarmId);
}
